package live_schedule

import "vrcm/src/vrcm/common/models"

type WaterMarkTemplate struct {
	models.Model

	TenantId      string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	WaterMarkName string `json:"watermark_name" gorm:"column:watermark_name;type:varchar(100);comment:通道id"`
	ImgUrl        string `json:"img_url" gorm:"type:varchar(300);comment:下车点id"`
	XRate         int    `json:"x_rate" gorm:"type:int;comment:x偏移量"`
	YRate         int    `json:"y_rate" gorm:"type:int;comment:y偏移量"`
	PreviewWidth  int    `json:"preview_width" gorm:"type:int;comment:预览宽"`
	PreviewHigh   int    `json:"preview_high" gorm:"type:int;comment:预览高"`
	models.ModelTime
	models.ControlBy
}

func (WaterMarkTemplate) TableName() string {
	return "watermark_template"
}

type WaterMarkTransTask struct {
	models.Model

	TenantId        string `json:"tenant_id" gorm:"type:varchar(50);comment:租户"`
	ChannelId       int    `json:"channel_id" gorm:"type:bigint unsigned;comment:通道id"`
	SourceId        int    `json:"source_id" gorm:"type:bigint unsigned;comment:信源id"`
	TrafficOnId     int    `json:"traffic_on_id" gorm:"type:bigint unsigned;comment:上车点id"`
	TrafficOffId    int    `json:"traffic_off_id" gorm:"type:bigint unsigned;comment:下车点id"`
	MediaId         int    `json:"media_id" gorm:"type:bigint unsigned;comment:媒体处理id"`
	TaskState       int    `json:"task_state" gorm:"type:tinyint;comment:状态1上线2异常 3离线"`
	WatermarkTaskId string `json:"watermark_task_id" gorm:"type:varchar(100);comment:转码任务id"`
	TaskId          string `json:"task_id" gorm:"type:varchar(100);comment:任务id"`
	InNodeId        string `json:"in_node_id" gorm:"type:varchar(100);comment:输入节点id"`
	OutNodeId       string `json:"out_node_id" gorm:"type:varchar(100);comment:输出节点id"`
	LiveId          string `json:"live_id" gorm:"type:varchar(100);comment:全球直播任务id"`
	InUrl           string `json:"in_url" gorm:"type:varchar(300);comment:输入源地址"`
	OutUrl          string `json:"out_url" gorm:"type:varchar(300);comment:输出源地址"`
	PushUrl         string `json:"push_url" gorm:"type:varchar(300);comment:第三方推流地址"`
	ExtraInfo       string `json:"extra_info" gorm:"type:varchar(1000);comment:额外信息"`
	StateUpdateTime int64  `json:"state_update_time" gorm:"column:state_update_time;type:int;comment:节点状态更新时间"`
	OutputStreamId  string `json:"output_stream_id" gorm:"type:varchar(100);comment:下车点输出id"`
	CustomOutUrl    string `json:"custom_out_url" gorm:"type:varchar(100);comment:自定义输出地址"`
	Area            int    `json:"area" gorm:"type:tinyint;comment:1外网 2内网"`
	models.ModelTime
	models.ControlBy
}

func (WaterMarkTransTask) TableName() string {
	return "watermark_trans_task"
}
